#define _CRT_SECURE_NO_WARNINGS 1

#include "Sort.h"




void TestInsertSort()
{
	int num[] = {3,44,38,5,47,15,36,26,27,2,46,4,19,50,48};
	int sz = sizeof(num) / sizeof(num[0]);
	InsertSort(num,sz);
	PrintArray(num,sz);
}


void TestShellSort()
{
	int num[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(num) / sizeof(num[0]);
	PrintArray(num, sz);
	ShellSort(num, sz);
	PrintArray(num, sz);
}
void TestHeapSort()
{
	int num[] = { 9,1,2,5,7,4,8,6,3,5 };
	int sz = sizeof(num) / sizeof(num[0]);

	HeapSort(num, sz);
	PrintArray(num, sz);
}
void TestSelectSort()
{
	int num[] = { 9,1,2,5,7,4,8,6,3,5,0 };
	int sz = sizeof(num) / sizeof(num[0]);

	SelectSort(num, sz);
	PrintArray(num, sz);
}


int main()
{
	//TestInsertSort();
	//TestShellSort();
	//TestOp();
	TestHeapSort();
	//TestSelectSort();
	return 0;
}

